# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=grilo-plugins
pkgver=0.3.11
pkgrel=1
pkgdesc="GNOME media discovery framework plugins"
url="https://wiki.gnome.org/Projects/Grilo"
arch="all !s390x" # Missing tracker-miners
license="LGPL-2.1-or-later"
depends="tracker-miners"
makedepends="glib-dev grilo-dev avahi-dev meson gstreamer-dev json-glib-dev
	libsoup-dev libxml2-dev sqlite-dev tracker-dev totem-pl-parser-dev
	gperf gnome-online-accounts-dev itstool gom-dev libmediaart-dev
	libgdata-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-dbg"
source="https://download.gnome.org/sources/grilo-plugins/${pkgver%.*}/grilo-plugins-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		-Denable-chromaprint=no \
		-Denable-lua-factory=no \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="eefeabf333568d06ce77ba865f2dc96592428ae41c459f51e2ea7f37914c2b3d52778e5548b7d49059f1e4b83c8c07e5a8798272c5ced0259de1900d9e3f6991  grilo-plugins-0.3.11.tar.xz"
